<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>LiveTrackMap.map.models</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="LiveTrackMap-module.html">Package&nbsp;LiveTrackMap</a> ::
        <a href="LiveTrackMap.map-module.html">Package&nbsp;map</a> ::
        Module&nbsp;models
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="LiveTrackMap.map.models-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="LiveTrackMap.map.models-module.html">Module LiveTrackMap.map.models</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-docstring">Models for the Map application.</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">django</tt><tt class="py-op">.</tt><tt class="py-name">db</tt> <tt class="py-keyword">import</tt> <tt id="link-0" class="py-name" targets="Module LiveTrackMap.live.models=LiveTrackMap.live.models-module.html,Module LiveTrackMap.map.models=LiveTrackMap.map.models-module.html,Module LiveTrackMap.testbot.models=LiveTrackMap.testbot.models-module.html,Module LiveTrackMap.track.models=LiveTrackMap.track.models-module.html"><a title="LiveTrackMap.live.models
LiveTrackMap.map.models
LiveTrackMap.testbot.models
LiveTrackMap.track.models" class="py-name" href="#" onclick="return doclink('link-0', 'models', 'link-0');">models</a></tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"># The models of the "Map" application</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="Service"></a><div id="Service-def"><a name="L9"></a><tt class="py-lineno"> 9</tt> <a class="py-toggle" href="#" id="Service-toggle" onclick="return toggle('Service');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="LiveTrackMap.map.models.Service-class.html">Service</a><tt class="py-op">(</tt><tt class="py-base-class">models</tt><tt class="py-op">.</tt><tt class="py-base-class">Model</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Service-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Service-expanded"><a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line">  <tt class="py-docstring">"""Stores information about the map services we are able to connect to"""</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line">  <tt id="link-1" class="py-name" targets="Variable LiveTrackMap.live.models.Tag.name=LiveTrackMap.live.models.Tag-class.html#name,Variable LiveTrackMap.map.models.Service.name=LiveTrackMap.map.models.Service-class.html#name,Variable LiveTrackMap.track.models.Itinerary.name=LiveTrackMap.track.models.Itinerary-class.html#name,Variable LiveTrackMap.track.models.Vehicle.name=LiveTrackMap.track.models.Vehicle-class.html#name"><a title="LiveTrackMap.live.models.Tag.name
LiveTrackMap.map.models.Service.name
LiveTrackMap.track.models.Itinerary.name
LiveTrackMap.track.models.Vehicle.name" class="py-name" href="#" onclick="return doclink('link-1', 'name', 'link-1');">name</a></tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name"><a title="LiveTrackMap.live.models
LiveTrackMap.map.models
LiveTrackMap.testbot.models
LiveTrackMap.track.models" class="py-name" href="#" onclick="return doclink('link-2', 'models', 'link-0');">models</a></tt><tt class="py-op">.</tt><tt class="py-name">CharField</tt><tt class="py-op">(</tt><tt class="py-name">max_length</tt><tt class="py-op">=</tt><tt class="py-number">200</tt><tt class="py-op">,</tt> <tt class="py-name">unique</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line">  <tt id="link-3" class="py-name" targets="Variable LiveTrackMap.map.models.Service.url=LiveTrackMap.map.models.Service-class.html#url"><a title="LiveTrackMap.map.models.Service.url" class="py-name" href="#" onclick="return doclink('link-3', 'url', 'link-3');">url</a></tt>  <tt class="py-op">=</tt> <tt id="link-4" class="py-name"><a title="LiveTrackMap.live.models
LiveTrackMap.map.models
LiveTrackMap.testbot.models
LiveTrackMap.track.models" class="py-name" href="#" onclick="return doclink('link-4', 'models', 'link-0');">models</a></tt><tt class="py-op">.</tt><tt class="py-name">CharField</tt><tt class="py-op">(</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line">          <tt class="py-name">max_length</tt><tt class="py-op">=</tt><tt class="py-number">200</tt><tt class="py-op">,</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line">          <tt class="py-name">help_text</tt><tt class="py-op">=</tt><tt class="py-string">'The template for building the final url, you may need to include formatting tags : %(xSize)s, %(ySize)s, %(x)s, %(y)s, %(z)s, %(key)s'</tt><tt class="py-op">)</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line">  <tt id="link-5" class="py-name" targets="Variable LiveTrackMap.map.models.Service.key=LiveTrackMap.map.models.Service-class.html#key"><a title="LiveTrackMap.map.models.Service.key" class="py-name" href="#" onclick="return doclink('link-5', 'key', 'link-5');">key</a></tt>  <tt class="py-op">=</tt> <tt id="link-6" class="py-name"><a title="LiveTrackMap.live.models
LiveTrackMap.map.models
LiveTrackMap.testbot.models
LiveTrackMap.track.models" class="py-name" href="#" onclick="return doclink('link-6', 'models', 'link-0');">models</a></tt><tt class="py-op">.</tt><tt class="py-name">CharField</tt><tt class="py-op">(</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line">          <tt class="py-name">max_length</tt><tt class="py-op">=</tt><tt class="py-number">200</tt><tt class="py-op">,</tt> <tt class="py-name">blank</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line">          <tt class="py-name">help_text</tt><tt class="py-op">=</tt><tt class="py-string">'A unique authentication key for the mapping service'</tt><tt class="py-op">)</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line">   </tt>
<a name="Service.__unicode__"></a><div id="Service.__unicode__-def"><a name="L19"></a><tt class="py-lineno">19</tt> <a class="py-toggle" href="#" id="Service.__unicode__-toggle" onclick="return toggle('Service.__unicode__');">-</a><tt class="py-line">  <tt class="py-keyword">def</tt> <a class="py-def-name" href="LiveTrackMap.map.models.Service-class.html#__unicode__">__unicode__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Service.__unicode__-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="Service.__unicode__-expanded"><a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="LiveTrackMap.live.models.Tag.name
LiveTrackMap.map.models.Service.name
LiveTrackMap.track.models.Itinerary.name
LiveTrackMap.track.models.Vehicle.name" class="py-name" href="#" onclick="return doclink('link-7', 'name', 'link-1');">name</a></tt> </tt>
</div><a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line">   </tt>
<a name="Service.Meta"></a><div id="Service.Meta-def"><a name="L22"></a><tt class="py-lineno">22</tt> <a class="py-toggle" href="#" id="Service.Meta-toggle" onclick="return toggle('Service.Meta');">-</a><tt class="py-line">  <tt class="py-keyword">class</tt> <a class="py-def-name" href="LiveTrackMap.map.models.Service.Meta-class.html">Meta</a><tt class="py-op">:</tt> </tt>
</div><div id="Service.Meta-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="Service.Meta-expanded"><a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line">    <tt id="link-8" class="py-name" targets="Variable LiveTrackMap.live.models.Tag.Meta.unique_together=LiveTrackMap.live.models.Tag.Meta-class.html#unique_together,Variable LiveTrackMap.live.models.VehicleTag.Meta.unique_together=LiveTrackMap.live.models.VehicleTag.Meta-class.html#unique_together,Variable LiveTrackMap.map.models.Service.Meta.unique_together=LiveTrackMap.map.models.Service.Meta-class.html#unique_together,Variable LiveTrackMap.track.models.Checkpoint.Meta.unique_together=LiveTrackMap.track.models.Checkpoint.Meta-class.html#unique_together,Variable LiveTrackMap.track.models.Position.Meta.unique_together=LiveTrackMap.track.models.Position.Meta-class.html#unique_together"><a title="LiveTrackMap.live.models.Tag.Meta.unique_together
LiveTrackMap.live.models.VehicleTag.Meta.unique_together
LiveTrackMap.map.models.Service.Meta.unique_together
LiveTrackMap.track.models.Checkpoint.Meta.unique_together
LiveTrackMap.track.models.Position.Meta.unique_together" class="py-name" href="#" onclick="return doclink('link-8', 'unique_together', 'link-8');">unique_together</a></tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">'url'</tt><tt class="py-op">,</tt> <tt class="py-string">'key'</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line">    <tt id="link-9" class="py-name" targets="Variable LiveTrackMap.map.models.Service.Meta.ordering=LiveTrackMap.map.models.Service.Meta-class.html#ordering,Variable LiveTrackMap.testbot.models.Position.Meta.ordering=LiveTrackMap.testbot.models.Position.Meta-class.html#ordering,Variable LiveTrackMap.track.models.Checkpoint.Meta.ordering=LiveTrackMap.track.models.Checkpoint.Meta-class.html#ordering"><a title="LiveTrackMap.map.models.Service.Meta.ordering
LiveTrackMap.testbot.models.Position.Meta.ordering
LiveTrackMap.track.models.Checkpoint.Meta.ordering" class="py-name" href="#" onclick="return doclink('link-9', 'ordering', 'link-9');">ordering</a></tt>        <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">'name'</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line">    <tt id="link-10" class="py-name" targets="Variable LiveTrackMap.live.models.VehicleTag.Meta.verbose_name=LiveTrackMap.live.models.VehicleTag.Meta-class.html#verbose_name,Variable LiveTrackMap.map.models.Service.Meta.verbose_name=LiveTrackMap.map.models.Service.Meta-class.html#verbose_name"><a title="LiveTrackMap.live.models.VehicleTag.Meta.verbose_name
LiveTrackMap.map.models.Service.Meta.verbose_name" class="py-name" href="#" onclick="return doclink('link-10', 'verbose_name', 'link-10');">verbose_name</a></tt>    <tt class="py-op">=</tt> <tt class="py-string">'Mapping service'</tt> </tt>
</div><a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line">   </tt>
<a name="Service.Admin"></a><div id="Service.Admin-def"><a name="L27"></a><tt class="py-lineno">27</tt> <a class="py-toggle" href="#" id="Service.Admin-toggle" onclick="return toggle('Service.Admin');">-</a><tt class="py-line">  <tt class="py-keyword">class</tt> <a class="py-def-name" href="LiveTrackMap.map.models.Service.Admin-class.html">Admin</a><tt class="py-op">:</tt> </tt>
</div><div id="Service.Admin-collapsed" style="display:none;" pad="++" indent="++++++"></div><div id="Service.Admin-expanded"><a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">    <tt id="link-11" class="py-name" targets="Variable LiveTrackMap.live.models.Tag.Admin.search_fields=LiveTrackMap.live.models.Tag.Admin-class.html#search_fields,Variable LiveTrackMap.live.models.UserProfile.Admin.search_fields=LiveTrackMap.live.models.UserProfile.Admin-class.html#search_fields,Variable LiveTrackMap.live.models.VehicleTag.Admin.search_fields=LiveTrackMap.live.models.VehicleTag.Admin-class.html#search_fields,Variable LiveTrackMap.map.models.Service.Admin.search_fields=LiveTrackMap.map.models.Service.Admin-class.html#search_fields,Variable LiveTrackMap.testbot.models.Position.Admin.search_fields=LiveTrackMap.testbot.models.Position.Admin-class.html#search_fields,Variable LiveTrackMap.track.models.Itinerary.Admin.search_fields=LiveTrackMap.track.models.Itinerary.Admin-class.html#search_fields,Variable LiveTrackMap.track.models.Position.Admin.search_fields=LiveTrackMap.track.models.Position.Admin-class.html#search_fields,Variable LiveTrackMap.track.models.Vehicle.Admin.search_fields=LiveTrackMap.track.models.Vehicle.Admin-class.html#search_fields"><a title="LiveTrackMap.live.models.Tag.Admin.search_fields
LiveTrackMap.live.models.UserProfile.Admin.search_fields
LiveTrackMap.live.models.VehicleTag.Admin.search_fields
LiveTrackMap.map.models.Service.Admin.search_fields
LiveTrackMap.testbot.models.Position.Admin.search_fields
LiveTrackMap.track.models.Itinerary.Admin.search_fields
LiveTrackMap.track.models.Position.Admin.search_fields
LiveTrackMap.track.models.Vehicle.Admin.search_fields" class="py-name" href="#" onclick="return doclink('link-11', 'search_fields', 'link-11');">search_fields</a></tt>   <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">'name'</tt><tt class="py-op">,</tt> <tt class="py-string">'url'</tt><tt class="py-op">,</tt> <tt class="py-string">'key'</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Jul  2 13:17:01 2008
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
